import request from "@/utils/request";

// 110警情详情（仅包含警情详情）
export function jqxxDetail(id) {
  return request({
    url: `/v1/jqxx/${id}`,
    method: "get",
  });
}

// 生成审批单 生成呈批单
export function saveApprovalForm(data) {
  return request({
    url: `/v1/jqxx-approval`,
    method: "put",
    data
  });
}

// 获取审批单详情
export function getApprovalFormDetail(id) {
  return request({
    url: `/v1/jqxx-approval/${id}`,
    method: "get",
  });
}

// 修改审批单
export function updateApprovalForm(data) {
  return request({
    url: `/v1/jqxx-approval`,
    method: "post",
    data
  });
}



// 研判指令操作
export function saveYpzl(data) {
  return request({
    url: `/v1/jqxx-ypzl/ypzl`,
    method: "put",
    data
  });
}


// 请求研判
export function qqyp(data) {
  return request({
    url: `/v1/jqxx-ypzl/qqyp`,
    method: "put",
    data
  });
}


// 研判指令-签收
export function signIn(id) {
  return request({
    url: `/v1/jqxx-ypzl/${id}/signIn`,
    method: "post"
  });
}

// 研判指令-反馈
export function feedback(data) {
  return request({
    url: `/v1/jqxx-ypzl/feedback`,
    method: "post",
    data
  });
}

// 指令详情
export function orderDetail(id) {
  return request({
    url: `/v1/jqxx-ypzl/${id}`,
    method: "get"
  });
}


